package edu.zut.hb.software.train.Generate.domain;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseEntity;




@Table(name="T_Generate")  //表名
@Entity    //实体
/*@NamedQueries({ @NamedQuery(name = "Customer.getRoot", query = "select g from Generate g where g.parent is null") })*/
public class Generate extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -31279394964769200L;
	
    @Id
	@Column(name = "Id")
	Long id;
	



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TYPE")
	String type;
 
	
	String time;
	
//	@OneToMany(mappedBy = "generate	", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
	//Set<Adaption> adaption;

	public String getType() {
		return type;
	}

	public String getTime() {
		return time;
	}
//
//	public Set<Adaption> getAdaption() {
//		return adaption;
//	}
//
//	public void setType(String type) {
//		this.type = type;
//	}
//
//	public void setTime(String time) {
//		this.time = time;
//	}
//
//	public void setAdaption(Set<Adaption> adaption) {
//		this.adaption = adaption;
//	}

	public void setType(String type) {
		this.type = type;
	}

	public void setTime(String time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "Generate [id=" + id + ", type=" + type + ", time=" + time + "]";
	}

	/**
	 * 
	 
	@GeneratedValue(strategy=GenerateType.AUTO)   //生成主键的策略
	@Id  //主键
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(type="LASTTYPE",length=50,nullable=false)
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	*/
	
	
	
}
